/**
 * Created by JetBrains WebStorm.
 * User: Administrator
 * Date: 13-3-4
 * Time: 下午10:04
 * To change this template use File | Settings | File Templates.
 */
function addLoadEvent(func){
    var old = window.onload;
    if(typeof window.onload != 'function'){
        window.onload = func;
    }else{
        window.onload = function(){
            old();
            func();
        }
    }
}